package com;

import com.central.scheduler.common.utils.JSONUtils;
import com.central.scheduler.service.queue.entity.TaskExecutionContext;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author Tindy
 * @date 2022/1/20
 * @describe
 */
public class T {
    public static void main(String[] args) {
        Pattern compile = Pattern.compile(".*;", Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
        String s="adfdsf\nfasdf;";
        String substring = s.substring(0, s.length() - 1);
        Matcher matcher = compile.matcher(s);
        System.out.println(matcher.matches());
    }
}
